package com.cn.common.enums;

public enum UserTypeEnum {
    COMPANY(1, "公司用户"),
    DRIVER(2, "司机"),
    PAYEE(3, "收款人"),
    OMP(4, "运营平台用户");

    private final int code;
    private final String name;

    private UserTypeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }

    public static String getName(int code) {
        UserTypeEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            UserTypeEnum value = var1[var3];
            if (value.getCode() == code) {
                return value.getName();
            }
        }

        return "";
    }
}